<div class="container shadow p-5 w-auto" id="user-password" xmlns:th="http://www.thymeleaf.org"
     xmlns="http://www.w3.org/1999/html">
<!--    <div th:replace="user/modal/password.html"></div>-->
    <div class="row">
        <h2 class="placeholder">修改密码</h2>
        <form id="user-card-password-form">
            <div class="row g-3 d-inline mt-0">
                    <div class="col-auto mt-0">
                        <label for="user-card-password-form-password" class="col-form-label placeholder">请输入新的密码</label>
                    </div>
                    <div class="col-auto">
                        <input name="password" type="password" id="user-card-password-form-password"
                               class="form-control placeholder">
                        <div class="valid-feedback">
                            提示: 格式正确!
                        </div>
                        <div id="user-card-password-form-password-fail" class="invalid-feedback">
                            提示: 密码格式错误
                        </div>
                    </div>
                </div>
        <div class="row g-3 d-inline">
            <div class="col-auto mt-0">
                <label for="user-card-password-form-password-second" class="col-form-label placeholder">请再次输入密码</label>
            </div>
            <div class="col-auto">
                <input name="password-second" type="password" id="user-card-password-form-password-second" class="form-control placeholder">
                <div class="valid-feedback">
                    提示: 格式正确!
                </div>
                <div id="user-card-password-form-password-second-fail" class="invalid-feedback placeholder">
                    提示: 第二次输入的密码不一致
                </div>
            </div>
        </div>

        <div class="row g-3">
            <div class="col-auto">
                <label for="user-card-password-form-captcha" class="col-form-label placeholder">验证码</label>
            </div>
            <div class="col-auto mt-0">
                <input name="captcha" type="password" id="user-card-password-form-captcha"
                       class="form-control placeholder">
                <div class="valid-feedback">
                    提示: 格式正确!
                </div>
                <div id="user-card-password-form-captcha-fail" class="invalid-feedback placeholder">
                    提示: 第二次输入的密码不一致
                </div>
            </div>
            <div class="col-auto">
                <button id="user-card-password-btn-sendCaptcha" type="button" class="btn btn-warning placeholder" onclick="sendCaptcha('user-card-password-btn-sendCaptcha')">发送验证码</button>
            </div>
        </div>
        </form>
        <button id="user-card-password-form-save" class="btn btn-primary w-50 mx-auto mt-5 mb-3 placeholder" onclick="saveUserPassword('user-card-password-form-save')">确认修改</button>
    </div>

</div>